/*
 * Generated by XDoclet - Do not edit!
 */
package hotel.ejb;

/**
 * CMP layer for Client.
 * @xdoclet-generated at ${TODAY}
 * @copyright The XDoclet Team
 * @author XDoclet
 * @version ${version}
 */
public abstract class ClientCMP
   extends hotel.ejb.ClientBean
   implements javax.ejb.EntityBean
{

   public void ejbLoad() throws javax.ejb.EJBException, java.rmi.RemoteException
   {
      super.ejbLoad();
   }

   public void ejbStore() throws javax.ejb.EJBException, java.rmi.RemoteException
   {
         super.ejbStore();
   }

   public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException
   {
      super.ejbActivate();
   }

   public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException
   {
      super.ejbPassivate();

      ClientValue = null;
   }

   public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException, java.rmi.RemoteException
   {
      super.setEntityContext(ctx);
   }

   public void unsetEntityContext() throws javax.ejb.EJBException, java.rmi.RemoteException
   {
      super.unsetEntityContext();
   }

   public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException, javax.ejb.RemoveException
   {
      super.ejbRemove();

   }

 /* Value Objects BEGIN */

   private hotel.interfaces.ClientValue ClientValue = null;

   public hotel.interfaces.ClientValue getClientValue()
   {
      ClientValue = new hotel.interfaces.ClientValue();
      try
         {
            ClientValue.setDNI( getDNI() );
            ClientValue.setNom( getNom() );

         }
         catch (Exception e)
         {
            throw new javax.ejb.EJBException(e);
         }

	  return ClientValue;
   }

/* Value Objects END */

   public abstract java.lang.Integer getDNI() ;

   public abstract void setDNI( java.lang.Integer DNI ) ;

   public abstract java.lang.String getNom() ;

   public abstract void setNom( java.lang.String nom ) ;

}
